﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="banner.aspx.cs" Inherits="admin_banner" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>系统设置</title>
    <link href="main.css" rel="stylesheet" type="text/css" />

 <script type="text/javascript" language="javascript">
     var i = 1
     function addFile() {
         if (i < 8) {
             var str = '<BR>&nbsp;&nbsp;&nbsp; 图片链接<input name="text" type="text" style="width: 150px" /> 上传文件<input type="file" name="File" runat="server" style="width: 300px"/>'
             document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)

         }
         else {
             alert("您一次最多只能上传8张图片！")
         }
         i++
     } 
   </script> 
</head>
<body bgcolor="#F1F4F7">
    <form id="form1" runat="server">
    <div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F4F7">
        <tr>
          <td align="center" bgcolor="#F1F4F7">
            <!--table width="98%" border="0" align="center" bordercolor="#FFFFFF" class="border">
			   <tr align="center">
			     <td height="22" align="right">选择模板：</td>
			     <td align="left">
<asp:DataList ID="DataList1" runat="server" RepeatColumns="3" CellPadding="4" ForeColor="#333333" Height="22px" Width="60%">
<ItemTemplate>
<asp:RadioButton id="rbttruck"   runat="server"   OnCheckedChanged="SetFalseone"   AutoPostBack="True" Checked=<%# (bool)DataBinder.Eval(Container.DataItem, "visible")%>  GroupName=<%# DataBinder.Eval(Container.DataItem, "modelid") %>></asp:RadioButton>
<%# DataBinder.Eval(Container.DataItem, "modelname") %>
</ItemTemplate>
</asp:DataList></td>
		      </tr>
			  <tr align="center">
			    <td width="22%" height="22" align="right">图片大小：</td>
			    <td align="left">
                    <asp:Label ID="Label1" runat="server" Width="100%"></asp:Label></td>
		      </tr>
			</table-->
            
<asp:Panel ID="Panel5" runat="server" Width="100%"> 
  <table width="90%" border="0" cellpadding="0" cellspacing="0">
    <!-- 图片列表 -->
    <tr>
      <td>
      <asp:DataList ID="DataList2" runat="server" RepeatColumns="2" CellPadding="0" ForeColor="#333333" Width="98%">
       <ItemTemplate>
               <div id="gallery_1" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;">
                <a href="banner.aspx?flashid=<%# DataBinder.Eval(Container.DataItem, "flashid")%>&action=del" onclick="if (confirm('您确实要删除该图片吗?')){}else{return false;}">[-]</a><br />
                <a href="../uploadfile/<%# DataBinder.Eval(Container.DataItem, "flashpic")%>" target="_blank">
                <img src="../uploadfile/<%# DataBinder.Eval(Container.DataItem, "flashpic")%>" height="100" border="0" />
                </a><br />
                <input value="<%# DataBinder.Eval(Container.DataItem, "flashurl")%>" size="15" name="content_<%# DataBinder.Eval(Container.DataItem, "flashid")%>" id="content_<%# DataBinder.Eval(Container.DataItem, "flashid")%>"/>
              </div>
        </ItemTemplate>
      </asp:DataList>    
              </td>
          </tr>
          <tr><td>&nbsp;</td></tr>
    <!-- 上传图片 -->
    <tr>
      <td align="left"><P id="MyFile">
      <a onclick="addFile()" href="#">[+]</a> 图片链接<input name="text" type="text" style="width: 150px" />
        上传文件<input id="File8" type="file" name="File" runat="server" style="width: 300px"/> </P></td>
    </tr>
    <tr>
      <td height="50" align="center"><table width="90%" height="22" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" style="height: 24px; width: 758px;">
          <asp:ImageButton ID="ImageButton1" ImageUrl="images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="images/button03.gif" border="0" /></a></td>
          </tr>
      </table></td>
    </tr>
  </table>
  </asp:Panel>
  </td>
        </tr>
      </table>
    </div>
    </form>
</body>
</html>
